package org.boyan.modules.controller;

import org.boyan.common.api.vo.Result;
import org.boyan.entity.cases.CaseStatus;
import org.boyan.modules.service.CaseStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/case/status")
public class CaseStatusController {
    @Autowired
    private CaseStatusService caseStatusService;
    @GetMapping
    public Result getCaseStatusList(){
        List<CaseStatus> caseStatusList=caseStatusService.getCaseStatusList();
        return Result.OK(caseStatusList);
    }
}
